
<h2 style="padding-left:4px" class="title2">Get more articles in <?= $this->groupname ?></h2>
<form action="<?= $this->url ( array (
                                      'module'     => 'default',
                                      'controller' => 'group',
                                      'action'     => 'update' 
                                      )
                               ) ?>" method="post">

  <input type="hidden" name="target" value="<?= $this->url (array ('action'=>'index', 'page'=>'1' ) ) ?>" /> 

		<div class="box-white">		
<p><label for="count">Count</label>

  <select name="count"/>
    <option value="25000">25000</option>
    <option value="50000" selected="selected">50000</option>
    <option value="100000">100000</option>
  </select>
</p>	

<p><label for="start">Start at</label>

  <input type="text" value="<?= $this->start ?>" name="start"/>
</p>

				<p><input type="submit" class="button red" value="Get Articles" /></p>

	</div>
	
</form>


<? if (sizeof($this->newsgroup->Files) > 1): ?>
<h2 class="title2" style="padding-left:4px;">Other articles</h2>
<div class="box-gray">
					
<p style="padding:10px"><label for="drm">Choose &#187;</label>
<select id="drm" onchange="location.href='<?= $this->url(array('action'=>'join')) ?>/renew/'+this.options[this.selectedIndex].value;">
  <? for ($x=0;$x<sizeof($this->newsgroup->Files);$x++): ?>
    <? $file = $this->newsgroup->Files[$x]; ?>
    <option value="<?= $x ?>"><?= $file['min'] ?>-<?= $file['max'] ?></option>
  <? endfor ?>
</select></p>
				
</div>
<? endif ?>


<p><input type="button" onclick="location.href='<?= $this->url(array('action'=>'join', 'renew'=>'renew')) ?>'" class="button red" value="Refresh Group" /></p>
 



<h2 style="padding-left:4px" class="title2">Search in <?= $this->groupname ?></h2>
<form action="<?= $this->url ( array (
                                      'module'     => 'default',
                                      'controller' => 'group',
                                      'action'     => 'filter' 
                                      )
                               ) ?>" method="post">
<div class="box-white">
					
<p><label for="find">Find</label>

  <input type="text" name="find"/>

</p>	
				
<p><label for="in">In</label>

  <select name="full"/>
    <option value="2">Downloaded articles only</option>
    <option value="1">Entire group</option>
  </select>

</p>	
				
<p><label for="filter">Type</label>

  <select name="filter"/>
    <option value="">(Any)</option>
    <option value="picture">Pictures</option>
    <option value="rar">RAR files</option>
    <option value="wmv">Video files</option>
    <option value="mp3">Audio Files</option>
  </select>
</p>
	
  <input type="hidden" name="target" value="<?= $this->url (array ('action'=>'index', 'page'=>'1' ) ) ?>"/> 	
	
				<p><input type="submit" class="button red" value="Search" /></p>

  <input type="hidden" name="goto" value="<?= $this->origin ?>"/> 
</div>

</form>


<?if ( sizeof($this->search) ): ?>
<h2 class="title2" style="padding-left:4px;">Saved searches</h2>			
<div class="box-gray">
					
<p style="padding:10px"><label for="drp">Searches</label><select onchange="location.href='<?= $this->url(array('action'=>'index')) ?>/save/'+this.options[this.selectedIndex].value">

<option></option>

<? foreach ($this->search as $saved):
   $value = str_replace (".xml", "", $saved);
  ?>

 <option value="<?= $value ?>"
   <? if ($value==$this->saved): ?>
   selected
<? endif ?>

><?= $value ?></option>

<? endforeach ?>
</select></p>
				
</div>
<? endif ?>



